<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTouristVisitsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tourist_visits', function (Blueprint $table) {
            $table->id();
            $table->char('visit_ip')->nullable()->comment("访问ip");
            $table->dateTime('visit_time')->nullable()->comment("访问时间");
            $table->char('visit_address')->nullable()->comment("访问地址");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tourist_visits');
    }
}
